import request from 'src/utils/request'

//  房屋租赁-列表
export function renovationList(data) {
    return request({
        url: '/serve/interiorFinish/list',
        method: 'post',
        data
    })
    return Promise.resolve({
        data: {
            records: [{
                villageName: '万科嘉园',
                houseNo: '1期6栋2单元2101室',
                rentMethod: 1,
                houseType: '3室2厅1厨1卫',
                rentMoney: '1300元',
                createTime: '2022-7-10',
                status: 1
            },{
                villageName: '万科嘉园',
                houseNo: '1期6栋2单元2102室',
                rentMethod: 2,
                houseType: '3室2厅1厨1卫',
                rentMoney: '1200元',
                createTime: '2022-7-10',
                status: 2
            },{
                villageName: '万科嘉园',
                houseNo: '1期6栋2单元2103室',
                rentMethod: 1,
                houseType: '3室2厅1厨1卫',
                rentMoney: '1300元',
                createTime: '2022-7-10',
                status: 3
            },
            {
                villageName: '万科嘉园',
                houseNo: '1期6栋2单元2103室',
                rentMethod: 1,
                houseType: '3室2厅1厨1卫',
                rentMoney: '1300元',
                createTime: '2022-7-10',
                status: 4
            }],
            total: 4
        }
    })
}

//  房屋租赁-统计
export function getStaticsData(data) {
    return request({
        url: '/serve/interiorFinish/Statistics',
        method: 'post',
        data
    })
}
//  装修详情-删除
export function del(data) {
    return request({
        url: '/serve/interiorFinish/delete',
        method: 'post',
        data
    })
}
//  装修详情-通过id查装修详情
export function info(data) {
    return request({
        url: '/serve/interiorFinish/details',
        method: 'post',
        data
    })
}

//  装修详情-装修申报状态保存接口,也是装修确认状态保存的接口,也是编辑的接口
export function DecotationAdd(data) {
    return request({
        url: '/serve/interiorFinish/update',
        method: 'post',
        data
    })
}

//  装修详情-新增
export function add(data) {
    return request({
        url: '/serve/interiorFinish/add',
        method: 'post',
        data
    })
}
